const { ccclass, property } = cc._decorator;
import ecsComponent from '../app/ecs/ecsComponent';
@ccclass
export default class playerComponent extends ecsComponent {
    constructor() {
        // 此处super传入ecsName值, 规定Component及Entity所属(默认default)
        super(/*other*/);
    }
    onLoad() {
        const global = window as any;
        global.player = this;
    }
}